<?php
// +----------------------------------------------------------------------
// | 应用设置
// +----------------------------------------------------------------------

return [
    // 应用地址（推荐使用server_domain）
    'app_host' => env('app.server_domain', 'localhost'),
    // 应用的命名空间
    'app_namespace' => '',
    // 是否启用路由
    'with_route' => true,
    // 默认应用
    'default_app' => 'home',
    // 默认时区
    'default_timezone' => 'Asia/Shanghai',

    // 应用映射（自动多应用模式有效）
    'app_map' => [],
    // 域名绑定（自动多应用模式有效）
    'domain_bind' => [],
    // 禁止URL访问的应用列表（自动多应用模式有效）
    'deny_app_list' => ['common', 'command', 'service', 'lang'],

    // 异常页面的模板文件
    'exception_tmpl' => app()->getThinkPath() . 'tpl/think_exception.tpl',

    // 错误显示信息,非调试模式有效
    'error_message' => '页面错误！请稍后再试～',
    // 显示错误信息
    'show_error_msg' => false,

    // 公众号授权跳转接口签名密钥
    'officialaccount_auth_secret' => 'cVkr5n8v36',
    
    // 应用部署信息
    'server_protocol' => env('app.server_protocol', 'http'),
    'server_domain' => env('app.server_domain', 'localhost'),
    'server_port' => env('app.server_port', '80'),
    'server_ip' => env('app.server_ip', '127.0.0.1'),

    // 服务器配置
    'server_adminauthlogin' => [
        'host' => '0.0.0.0',
        'port' => 8740,
        'msg_engine' => 'http_server',
        'enable_ssl' => false,
        'cert_file' => root_path() . 'extend/cert/server/web.crt',
        'key_file' => root_path() . 'extend/cert/server/web.key',
        'secret' => 'iC1BB0WtU5',
    ],
    'server_adminmessage' => [
        'host' => '0.0.0.0',
        'port' => 8741,
        'msg_engine' => 'http_server',
        'enable_ssl' => false,
        'cert_file' => root_path() . 'extend/cert/server/web.crt',
        'key_file' => root_path() . 'extend/cert/server/web.key',
        'secret' => 'e8q31BU7Qn',
    ],
    'server_asynctask' => [
        'host' => '0.0.0.0',
        'port' => 8750,
        'msg_engine' => 'http_server',
        'enable_ssl' => false,
        'cert_file' => root_path() . 'extend/cert/server/web.crt',
        'key_file' => root_path() . 'extend/cert/server/web.key',
        'secret' => 'glxZ2406L7',
    ],
    'server_winform' => [
        'host' => '0.0.0.0',
        'port' => 8800,
        'msg_engine' => 'redis_subscribe',
        'enable_ssl' => true,
        'cert_file' => root_path() . 'extend/cert/server/web.crt',
        'key_file' => root_path() . 'extend/cert/server/web.key',
        'secret' => 'a48gRM6379',
    ],
];
